-
Notifications
You must be signed in to change notification settings - Fork 288
Re-organize intrinsic-test
to enable seamless addition of behaviour testing for more architectures
#1758
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
9900e81
to
546554d
Compare
The module should be called |
@JamieCunliffe feel free to have a look at this since you are the original author of intrinsic-test. This is part of a GSoC project to extend intrinsic-test to other architectures. |
5dce230
to
7ff8497
Compare
Are we using the |
a12b4a4
to
ff10311
Compare
|
6e8851b
to
a2ce02c
Compare
intrinsic-test
to enable seamless addition of behaviour testing for more architecturesintrinsic-test
to enable seamless addition of behaviour testing for more architectures
intrinsic-test
to enable seamless addition of behaviour testing for more architecturesintrinsic-test
to enable seamless addition of behaviour testing for more architectures
Reasoning: 1. Majority of code assumes the usage of `Intrinsic` and related types, which is derived from the JSON structure of the ARM intrinsics JSON source file 2. Further commits will start with extracting common parts of the code (eg: Create C/Rust file, Build C/Rust file, etc)
…ted for different architectures. Next steps: Move the existing ARM-specific implementation into one that fits well with this trait.
…le_rust and compare_outputs
df2c75d
to
5d360a0
Compare
5d360a0
to
66a88fe
Compare
Okay, I'm more or less done with resolving minor issues now. |
pub fn write_rust_testfiles<T: IntrinsicTypeDefinition>( | ||
intrinsics: Vec<&dyn IntrinsicDefinition<T>>, | ||
rust_target: &str, | ||
notice: &str, | ||
definitions: &str, | ||
cfg: &str, | ||
) -> Vec<String> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One change I made in the last commit was adding the "definitions" argument so that we could accommodate the f16 formatting related changes made in this commit
Updates so far
arm
module, exposing only atest
function atsrc/main.rs
SupportedArchitectureTest
trait that has been implemented forarm
and should be implemented for other architectures too. Allows us to expose functionality like building C/Rust test files and comparing outputs.common
module for reuse by other architectures too.match
block for selection of architectures using thetarget
CLI variable.Reasoning
Intrinsic
type may be specific to architectures, hence the implementation of a trait helps us to abstract the usage of such data types within the architecture-specific moduleNew architecture of
intrinsic-test